package com.wwg.warehouse.usecase

import com.wwg.warehouse.data.whDb
import com.wwg.warehouse.usecase.access.ObjectAccessFactory

class DBTest {

    private val access by lazy { ObjectAccessFactory().objectAccess }

    fun querySubTree() {
        whDb.bookmarkDao.querySubTree("资源", "root/书签栏/已导入/书签栏/生活/电影资源/视频资源/", 2)
    }

    fun initDB() {
        access.initializeDB()
    }

    private companion object {
        private const val TAG = "DBTest"
    }
}